package com.smartEdu.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import com.smartEdu.dao.CommentsDao;
import com.smartEdu.mapper.CommentsMapper;
import com.smartEdu.model.CommentsModel;

@Repository(value="commentsDaoImpl")
public class CommentsDaoImpl implements CommentsDao{
	@Autowired(required=false)
	@Qualifier("commentsMapper")
	private CommentsMapper mapper;

	@Override
	public List<CommentsModel> getCommArticleByPK(String pk) {
		return mapper.getCommArticleByPK(pk);
	}
	
	@Override
	public List<CommentsModel> getCommHomeWorkByPK(String pk) {
		return mapper.getCommHomeWorkByPK(pk);
	}

}
